require("./auto-sort.js")
const express = require("express");
const fs = require("fs");
const path = require("path");

let app = express();
app.listen(8080, () => {
    console.log("端口：8080");
})
app.all("*", (req, res, next) => {
    res.header("Access-Control-Allow-Origin", "*");
    res.header("Access-Control-Allow-Headers", "content-type");
    res.header("Access-Control-Allow-Methods", "DELETE,PUT,POST,GET,OPTIONS");
    next();
})

app.use(express.static(path.join(__dirname, "/")));
